<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        .box {
            width: 300px;
            height: 300px;
            background-color: #f07373;
            display: flex;
            /* align-items: center; */
        }

        .box div:nth-of-type(1) {
            /* position: absolute; */
            width: 300px;
            height: 100px;
            background-color: skyblue;
            /* border-radius: 50%; */
            /* margin: 0 10px; */
            flex-shrink: 0.5;
        }

        .box div:nth-of-type(2) {
            /* position: absolute; */
            width: 400px;
            height: 100px;
            background-color: pink;
            /* border-radius: 50%; */
            /* margin: 0 10px; */
            flex-shrink: 0.2;

        }
    </style>
</head>

<body>
    <div class="box">
        <div>1</div>
        <div>2</div>
    </div>
</body>

</html>